


#ifndef SNL_FILEREADER_H
#define SNL_FILEREADER_H

#include <iostream>
#include <fstream>
using namespace std;

#define BUFLEN 256

class FileReader
{
public:
	FileReader(const char* str);
	~FileReader();
	bool m_openFile();
	void openline();
	char m_getNextChar();
	void closeline();
	
	char m_getPreChar();
	
	
private:

	//data area

	char filename[20];
	ifstream myfile;
	char lineBuf[BUFLEN];
	int linepos;
	int bufsize;

	

	//about buffer
};


#endif